package com.fbs.wowo.inform.web;


import com.fbs.wowo.base.BaseController;
import com.fbs.wowo.base.Response;
import com.fbs.wowo.inform.entity.Inform;
import com.fbs.wowo.inform.service.InformService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 举报
 */
@RestController
@RequestMapping("inform")
public class InformController extends BaseController {


    @Resource
    private InformService informService;

    /**
     * 添加举报内容
     * @param inform
     * @return
     */
    @PostMapping("insertInform")
    public Response insertInform(Inform inform){
        informService.insertSelective(inform);
        return success();
    }
}
